package com.shujia.day17;

public class Teacher {
    public String name;
    private int age;

    private Teacher() {
    }

    private void teach(String skill){
        System.out.println(name+"正在教授"+skill);
    }
    private void teach(){
        System.out.println(name+"正在教授Java");
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
